#!/bin/bash
run_test() {
  local test_case=$1
  ret=$(pytest $test_case > /dev/null; echo $?)
  if [ $ret -eq 0 ]; then
    echo -e "$test_case passed\n"
  else
    echo -e "$test_case failed\n"
  fi
}

# echo $(run_test test_16bit_precision_example.py)
# echo $(run_test test_early_stopping_example.py)
# echo $(run_test test_mnist_example.py)
# echo $(run_test test_mnist_multi_npu_example.py)

for FILE in ./test/*.py; do echo $(run_test $FILE); done